package com.serkol.ams.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.serkol.ams.entity.About;
import com.serkol.ams.service.AboutService;
import com.serkol.ams.mapper.AboutMapper;
import com.serkol.handler.MyLambdaQueryWrapper;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
* @author Administrator
* @description 针对表【about】的数据库操作Service实现
* @createDate 2025-03-05 11:58:05
*/
@Service
public class AboutServiceImpl extends ServiceImpl<AboutMapper, About>
    implements AboutService{

    @Override
    public Map<String, Object> getInfo() {
        long id = 1;
        MyLambdaQueryWrapper<About> queryWrapper = new MyLambdaQueryWrapper<>();
        queryWrapper.eq(About::getId, id).select(About::getId, About::getName, About::getRemark, About::getContent, About::getLogoId, About::getAddress, About::getPhone, About::getEmail);
        queryWrapper.picture(About::getLogoId).as("logoUrl");
        return this.getMap(queryWrapper);
    }
}




